#ifndef FLEE_H
#define FLEE_H

#include "SteeringBehaviour.h"

namespace Engine
{
	namespace SteeringBehaviourTypes
	{
		const unsigned int FLEE = Hash("Flee");
	}
	class Flee : public SteeringBehaviour
	{
		private:
			float m_fleeDist;
			float m_fleeDistSquared;

		public:
			Flee();
			void SetFleeDistance(float d);
			float GetFleeDistance() const {return m_fleeDist;}

			void Update(SteeringOutput* output);
			const char* GetTypeName() const {return "Flee";}
			unsigned int GetHash() const {return SteeringBehaviourTypes::FLEE;}
	};

	typedef std::shared_ptr<Flee> FleeSPtr;
}

#endif 